home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Macintosh Sample Code / SC.021.ModalList / ModalList.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-18  |  2.2 KB  |  74 lines  |  [TEXT/MPS ]

  1. /*
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    ModalList : Simple Modal Dialog and List Manager Sample Application
  6. #
  7. #    ModalList.h
  8. #
  9. #    Copyright © 1989 Apple Computer, Inc.
  10. #    All rights reserved.
  11. #
  12. #    Versions:    
  13. #            1.00                     10/89
  14. #            1.01                    06/92
  15. #
  16. #    Components:
  17. #            ModalList.make            October 1, 1989
  18. #            ModalList.h                October 1, 1989
  19. #            ModalList.c                October 1, 1989
  20. #            ModalListInit.c            June 12, 1992
  21. #            ModalList.r                October 1, 1989
  22. #            TCModalList.π            June 12, 1992
  23. #            TCModalList.π.rsrc        June 12, 1992
  24. #
  25. #    ModalList is an example application that demonstrates
  26. #    how to use the Dialog Manager and List Manager routines
  27. #    together. It is not a good example of a sample application
  28. #    but a great example of the use of lists in a dialog. The
  29. #    default LDEF is used to display a 2 dimensional list of strings.
  30. #    Each cell's string is initialized to represent it's position in the
  31. #    list. The user can change these strings and search for a particular
  32. #    setting. Once again this is not meant as an example application and
  33. #    there are some features that are documented in the source listing
  34. #    that you should pay close attention to inorder to understand how
  35. #    this example works.
  36. #
  37. */
  38.  
  39. #define cMinSize    32                /* application's minimum size (in K) */
  40. #define cPrefSize    32                /* application's preferred size (in K) */
  41.  
  42. /* kSysEnvironsVersion is passed to SysEnvirons to tell it which version of the
  43. ** SysEnvRec we understand.
  44. */
  45.  
  46. #define    cSysEnvironsVersion        1
  47.  
  48. /* the modal dialog window and item resource id's
  49. */
  50.  
  51. #define    cDLOGID                256            /* DLOG resource ID */
  52. #define    cOKOutlineItem        3            /* DITL ID for OK Outline item */
  53. #define    cListItem            4            /* DITL ID for List item */
  54.  
  55. #define    cNoNilHiliteItem    5            /* DITL IDs for check box items */
  56. #define    cUseSenseItem        6    
  57. #define    cNoRectItem            7
  58. #define    cNoExtendItem        8
  59. #define    cNoDisjointItem        9
  60. #define    cExtendDragItem        10
  61. #define    cOnlyOneItem        11
  62.  
  63. #define    cTextItem            12            /* DITL ID for text edit item */
  64. #define    cSetItem            13            /* DITL ID for misc buttons */
  65. #define    cFindItem            14
  66.  
  67. /* the list dimensions
  68. */
  69. #define    cListCols            16            /* cells */            
  70. #define    cListRows            16            /* cells */
  71. #define    cListCellWidth        96            /* pixels */
  72. #define    cListCellHeight        16            /* pixels */
  73.  
  74.